/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.report.paymentWithdrawLog.entity;

import cn.apestar.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 提现记录表Entity
 *
 * @author yudw
 * @version 2016-08-27
 */
public class PaymentWithdrawLog extends DataEntity<PaymentWithdrawLog> {

    private static final long serialVersionUID = 1L;

    private String money; // 提现金额

    private String type; // 提现类型，manual手动，auto自动

    private String status; // 提现完成状态 process体现中 complete已提现 back已退回 pass_failed未通过

    private String audit; // 是否审核通过 0 未审核 1审核

    private Date auditTime; // 审核时间

    private String remark; // 备注

    private String transferAccount; // 转账账号

    private String transferUsername; // 转账账号姓名

    private String updateUsername; // 记录更新人的账号

    public PaymentWithdrawLog() {
        super();
    }

    public PaymentWithdrawLog(String id) {
        super(id);
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Length(min = 1, max = 1, message = "是否审核通过 0 未审核 1审核长度必须介于 1 和 1 之间")
    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    @Length(min = 0, max = 100, message = "备注长度必须介于 0 和 100 之间") public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Length(min = 0, max = 100, message = "转账账号长度必须介于 0 和 100 之间")
    public String getTransferAccount() {
        return transferAccount;
    }

    public void setTransferAccount(String transferAccount) {
        this.transferAccount = transferAccount;
    }

    @Length(min = 0, max = 100, message = "转账账号姓名长度必须介于 0 和 100 之间")
    public String getTransferUsername() {
        return transferUsername;
    }

    public void setTransferUsername(String transferUsername) {
        this.transferUsername = transferUsername;
    }

    @Length(min = 0, max = 100, message = "记录更新人的账号长度必须介于 0 和 100 之间")
    public String getUpdateUsername() {
        return updateUsername;
    }

    public void setUpdateUsername(String updateUsername) {
        this.updateUsername = updateUsername;
    }

}